package net.maku.events.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;

import net.maku.framework.common.utils.DateUtils;

import java.util.Date;

/**
 * 用户所答竞赛题选项
 *
 * @author 阿沐 babamu@126.com
 * @since 1.0.0 2025-03-22
 */
@Data
@Schema(description = "用户所答竞赛题选项")
public class UserContestQuestionOptionVO implements Serializable {
    private static final long serialVersionUID = 1L;

    @Schema(description = "id")
    private Long id;

    @Schema(description = "用户id")
    private Long userId;

    @Schema(description = "竞赛答题id")
    private Long contestQuestionId;

    @Schema(description = "竞赛答题id")
    private Long questionId;

    @Schema(description = "选项id")
    private Long optionId;

    @Schema(description = "选项标题")
    private String optionTitle;

    @Schema(description = "是否是正确答案")
    private Integer whetherCorrectAnswer;

    @Schema(description = "是否选中")
    private Integer whetherSelected;

    @Schema(description = "租户ID")
    private Long tenantId;

    @Schema(description = "版本号")
    private Integer version;

    @Schema(description = "删除标识  0：正常   1：已删除")
    private Integer deleted;

    @Schema(description = "创建者")
    private Long creator;

    @Schema(description = "创建时间")
    @JsonFormat(pattern = DateUtils.DATE_TIME_PATTERN)
    private Date createTime;

    @Schema(description = "更新者")
    private Long updater;

    @Schema(description = "更新时间")
    @JsonFormat(pattern = DateUtils.DATE_TIME_PATTERN)
    private Date updateTime;


}